Skip to content

asio: each expected diagnostic on one line, so clang's -verify reads it - #5

Merged
pinhopro merged 1 commit into
mainfrom
fix/diagnostic-directives
Nov 16, 2026
Merged

pinhopro merged 1 commit into
mainfrom
fix/diagnostic-directives

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

Summary

Three compile-diagnostic tests wrapped their expected text over two // lines. clang's
-verify cannot find the closing }} there, reports an error the rule ignored, and drops the
directive, so the tests checked nothing. Each now states a shorter part of the message on one
line.

The superproject's webcpp.compile-diagnostic now fails on a directive that -verify drops
(webcpporg/webcpp, branch crypto/v0.1), which is what found these. That branch records this
commit as libs/asio, so this pull request merges before it. The branch sits on 2a59df2, the
commit webcpporg/webcpp#19 records (release-link, which main merged in #4), so it merges with a
merge commit, as release-link did, and the recorded commit is on asio's main.

Changes

  • test/capabilities/diagnostics_test.cpp, test/openssl_on_webassembly_test.cpp,
    test/ssl_without_openssl_test.cpp: one expected-diagnostic line each.
  • doc/changelog.adoc: one line.

Verification

  • asio's compile-diagnostic tests natively and on wasip2, with the superproject's stricter
    check (they fail on it without this change).
  • The crypto branch's full local green, which builds asio's tests on every lane, with this
    commit recorded.

🤖 Generated with Claude Code

Three compile-diagnostic tests wrapped their expected text over two // lines. clang's -verify cannot find the closing }} there, reports an error the rule ignores, and drops the directive, so the tests checked nothing. Each now states a shorter part of the message on one line.
@pinhopro
pinhopro merged commit 8a2c7af into main Nov 16, 2026
42 checks passed
@pinhopro
pinhopro deleted the fix/diagnostic-directives branch November 17, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant